package extends_abstract.abstracthome;

import java.util.ArrayList;

public class abstracthome {
    public static void main(String[] args) {
        boss bigboss = new boss("bigboss",1000000);
        child smallchild1 = new child("小儿子",0);
        child smallchild2 = new child("大儿子",10);
        ArrayList<Double> list=bigboss.send(600,2);
        smallchild1.receive(list.get(0));
        smallchild2.receive(list.get(1));
        smallchild1.balance();
        smallchild2.balance();
        bigboss.balance();
    }
}
